﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ModelLayer
{
    public class Battery
    {
        private int _batteryId;
        private int _percentCharged;
        private DateTime _activeFrom;
        private int _timesCharged;

        public Battery(int id, int percentCharged, DateTime active, int timescharged)
        {
            this._batteryId = id;
            this._percentCharged = percentCharged;
            this._activeFrom = active;
            this._timesCharged = timescharged;
        }

        public int BatteryId
        {
            get { return _batteryId; }
            set { _batteryId = value; }
        }

        public int PercentCharged
        {
            get { return _percentCharged; }
            set { _percentCharged = value; }
        }

        public DateTime ActiveFrom
        {
            get { return _activeFrom; }
            set { _activeFrom = value; }
        }

        public int TimesCharged
        {
            get { return _timesCharged; }
            set { _timesCharged = value; }
        }
    }
}
